<html {$html_attrs}>
<head>
<title>{$caption proforma_invoices_report}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#height100{$id} {padding:10px;}
#toplinks_block{$id} {padding:2px 5px}
#toplinks_block{$id} > * {margin:4px 6px;vertical-align:middle;}
#menu_block{$id} {clear:left;margin-top:10px;}
#menu_block{$id} div {{BEGIN RTL_block}float:right;{END RTL_block}{BEGIN LTR_block}float:left;{END LTR_block}}
#menu_block{$id} div div {margin-right:1px;float:none;}
#menu_block{$id} a {white-space:nowrap;}
#search_records_block{$id} {padding:9px 10px 13px 10px;text-align:right}
#search_records_block{$id} > * {margin:2px 2px;vertical-align:middle}
#detFound{$id}, #pageOf{$id} {white-space:nowrap}
#recordcontrols_block{$id} {padding:13px 10px 9px 10px;text-align:right}
#recordcontrols{$id} > *,#newrecordcontrols{$id} > * {margin:2px 2px;vertical-align:middle}
#search_records_top{$id} {{BEGIN RTL_block}clear:right;{END RTL_block}{BEGIN LTR_block}clear:left;{END LTR_block}}
#message_block{$id} {text-align:center;}
#grid_block{$id} {margin-top:10px;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
.grid_recordheader {padding-top:5px;}
.grid_recordheader a {margin:0 5px;}
#mastertable_block{$id} {margin:10px 0}
#searchOptions{$id}{
	margin-right: 10px;
	padding-bottom: 18px;
}
#searchPanelBottomRound{$id}{
	/*margin-right: 10px !important;*/
}
#searchform{$id}{
	float: left; 
}
#searchPanelContainer{$id}{
	width: 200px;
	margin-top:10px;
	display: block; 
	float: none;
	position:absolute;
}
body{margin:0px;padding:0px;}

/*report styles*/
table.report {border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px; border-style: solid; border-color: #cccccc;}
td.group_1{background-color: 90EE90;}
td.group_2{background-color: ADD8E6;}
td.group_3{background-color: FFB6C1;}
td.group_4{background-color: FFFACD;}
td.group_5{background-color: 7FFFD4;}
td.group_6{background-color: B0E0E6;}
td.group_7{background-color: FA8072;}
td.nbgroup_1{background-color: 90EE90;border-style:none;}
td.nbgroup_2{background-color: ADD8E6;border-style:none;}
td.nbgroup_3{background-color: FFB6C1;border-style:none;}
td.nbgroup_4{background-color: FFFACD;border-style:none;}
td.nbgroup_5{background-color: 7FFFD4;border-style:none;}
td.nbgroup_6{background-color: B0E0E6;border-style:none;}
td.nbgroup_7{background-color: FA8072;border-style:none;}
td.header_1{background-color: 7ACA7A;}
td.header_2{background-color: 93B7C3;}
td.header_3{background-color: D89AA4;}
td.header_4{background-color: D8D4AE;}
td.header_5{background-color: 6BD8B4;}
td.header_6{background-color: 95BEC3;}
td.header_7{background-color: D46C60;}
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}


#export_links{$id} * {padding:0}
</style>
{END style_block}
<!--[if IE]>
{BEGIN iestyle_block}
<style>
#toplinks_block{$id} * {margin:2px 3px;vertical-align:middle;}
#search_records_block{$id} * {margin:1px 1px;vertical-align:middle}
#recordcontrols{$id} *, #newrecordcontrols{$id} * {margin:1x 1px;vertical-align:middle}
.grid {height:100%;}
</style>
{END iestyle_block}
<![endif]-->
</head>
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
{$header}
<div id="height100{$id}">

{BEGIN toplinks_block}
<div>
<b class="xtop"><b class="rb1 rb1_top"></b><b class="rb2 rb2_top"></b><b class="rb3 rb3_top"></b><b class="rb4 rb4_top"></b></b>
<div class="top" id="toplinks_block{$id}" >
<span><font style="FONT-FAMILY: Verdana, Arial;">{mlang_message LOGGED_AS}</font>&nbsp;<b>{$username}</b>&nbsp;</span>
<span class=buttonborder><input type=button class=button value="{mlang_message LOG_OUT}" {$logoutlink_attrs}></span>

{BEGIN adminarea_link}
<span class=buttonborder><input type=button class=button value="{mlang_message AA_ADMINAREA}" {$adminarealink_attrs}></span>
{END adminarea_link}


{BEGIN asearch_link}
<span class=buttonborder><input type=button class=button value="{mlang_message ADVANCED_SEARCH}" {$asearchlink_attrs}></span>
{END asearch_link}



{BEGIN print_link}
<span class=buttonborder><input type=button class=button value="{mlang_message PRINTER_FRIENDLY}" {$printlink_attrs}></span>
{END print_link}

{BEGIN printall_link}
<span class=buttonborder><input type=button class=button value="{mlang_message PRINT_WHOLE_REPORT}" {$printalllink_attrs}></span>
{END printall_link}



{BEGIN export_link}
<span id="export_links{$id}">
<a href="proforma_invoices_report_print.php?all=1&format=excel" {$excellink_attrs}><img alt="Expot to Excel" src="images/excel.gif" border="0"></a>
<a href="proforma_invoices_report_print.php?all=1&format=word" {$wordlink_attrs}><img alt="Export to Word" src="images/word.gif" border="0" ></a>
<a target="_blank" href="proforma_invoices_report_print.php?all=1&format=pdf" {$pdflink_attrs}><img alt="Export to PDF" src="images/pdf.gif" border="0"></a>
</span>
{END export_link}


{BEGIN languages_block}
<span id="languages_block{$id}">
<b>{BEGIN lang_label}{mlang_message LANGUAGE}:{END lang_label}</b>&nbsp;
	<select {$langselector_attrs}>
		<option value="Chinese (Hong Kong S.A.R.)" {$Chinese__Hong_Kong_S_A_R___langattrs}>中文(繁體)(香港特別行政區)</option>
		<option value="Chinese (Taiwan)" {$Chinese__Taiwan__langattrs}>中文(繁體)(台灣)</option>
		<option value="English" {$English_langattrs}>English</option>
	</select>
</span>
{END languages_block}
</div>
<b class="xbottom"><b class="rb4 rb4_top"></b><b class="rb3 rb3_top"></b><b class="rb2 rb2_top"></b><b class="rb1 rb1_top"></b></b>
</div>
{END toplinks_block}

<!-- MenuBegin -->
{BEGIN menu_block}
<div id="menu_block{$id}" >
<!-- MainMenuBegin -->
{$mainmenu horizontal}
<!-- MainMenuEnd -->	
</div>
{END menu_block}

<!-- MenuEnd -->

{BEGIN search_records_block} 
<div id="search_records_top{$id}">
	<b class="rb2 rb2_search"></b><b class="rb3 rb3_search"></b><b class="rb4 rb4_search"></b>
	<div id="search_records_block{$id}" class="main_table_border_P">
		{BEGIN searchform}
		<!-- Search panel header for horizontal layouts -->
		<span id="searchform{$id}" align="absmiddle">
	<span id="searchPanelHeader{$id}">  
		{$simpleSearchFieldCombo}
		
		{$simpleSearchTypeCombo}
		
		{BEGIN searchform_text}
		<input type="text" {$searchfor_attrs} size="25">
		{END searchform_text}
		&nbsp;
		{BEGIN searchform_search}
			<span class="buttonborder"><input class="button" type="button" style="width: 18px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} ></span>
		{END searchform_search}
		&nbsp;
		{BEGIN searchform_showall}	
		<span id="showall{$id}" class="buttonborder" {$showAllCont_attrs}><input type="button" class="button" value="{mlang_message SHOW_ALL}" {$showallbutton_attrs}></span>
		{END searchform_showall}
	</span>
	{BEGIN searchPanelTopButtons}
	<span>
		&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
		&nbsp;		
		<span class="buttonborder"><input class="button" type="button" id="showOptPanel{$id}" style="width: 18px; background-image: url(images/search/showOptions.gif);" {$showHideSearchPanel_attrs} ></span>
	</span>
	{END searchPanelTopButtons}
</span>  
	{END searchform}

		<div style="display: inline;">
			&nbsp;&nbsp;&nbsp;
			
				{BEGIN details_block}
			<span {$details_attrs}>{mlang_message DETAILS_FOUND}: {$records_found}&nbsp;</span>
		{END details_block}
		
		{BEGIN pages_block}
			<span {$pages_attrs}>{mlang_message PAGE1} {$page} {mlang_message PAGE2} {$maxpages}</span>
		{END pages_block}

			&nbsp;&nbsp;&nbsp;
			
		{BEGIN recordspp_block}	
					{$grpsPerPage}
		{END recordspp_block}
		</div>
	</div>
</div> 
{END search_records_block} 

<!-- search panel and window -->
<div id="searchPanelContainer{$id}" class="searchPanelContainer">
{$adv_search_panel} 
</div>
<b class="xbottom" id="searchPanelBottomRound{$id}" {$searchPanelBottomRound_attrs}>
	<b class="rb4 rb4_panel"></b>
	<b class="rb3 rb3_panel"></b>
	<b class="rb2 rb2_panel"></b>
	<b class="rb1 rb1_panel"></b>
</b>

<div moveForSearch="move{$id}" {$marginStyle}>

{BEGIN recordcontrols_block}
<div id="recordcontrols_block{$id}" class="body3">
{BEGIN newrecord_controls}
<span id="newrecord_controls{$id}" >
{BEGIN add_link}
<span class=buttonborder><input type=button class="button" value="{mlang_message ADD_NEW}" {$addlink_attrs}></span>
{END add_link}

{BEGIN inlineadd_link}
<span class=buttonborder><input type=button class="button" value="{mlang_message INLINE_ADD}" {$inlineaddlink_attrs} ></span>
{END inlineadd_link}
</span>
{END newrecord_controls}
{BEGIN record_controls}
<span id="record_controls{$id}">

{BEGIN editselected_link}
<span class=buttonborder {$editselectedlink_span}><input type=button class="button" value="{mlang_message EDIT_SELECTED}" {$editselectedlink_attrs}></span>
{END editselected_link}
{BEGIN saveall_link}
<span class=buttonborder {$savealllink_span}><input type=button class="button" value="{mlang_message SAVE_ALL}" {$savealllink_attrs}></span>
{END saveall_link}
{BEGIN cancelall_link}
<span class=buttonborder {$cancelalllink_span}><input type=button class="button" value="{mlang_message CANCEL_ALL}" {$cancelalllink_attrs}></span>
{END cancelall_link}

{BEGIN deleteselected_link}
<span class=buttonborder {$deleteselectedlink_span}><input type=button class="button" value="{mlang_message DELETE_SELECTED}" {$deleteselectedlink_attrs}></span>
{END deleteselected_link}


</span>
{END record_controls}
</div>
<b class="xbottom"><b class="rb4 rb4_controls"></b><b class="rb3 rb3_controls"></b><b class="rb2 rb2_controls"></b><b class="rb1 rb1_controls"></b></b>
{END recordcontrols_block}

<div id="usermessage{$id}" class="message">{$user_message}</div>

{BEGIN grid_block}
<div id="grid_block{$id}">
<TABLE class="report" WIDTH="auto" CELLPADDING=1 CELLSPACING=0 BORDER=0 style="border: solid; border-width: 1px; border-color: black;">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN account_id_newgroup}
<tr>
<td class=header_1 colspan=6>
{$label proforma_invoices_report account_id}:&nbsp;
<font style="font-weight:900">{$account_id_grval}</font></td>
</tr>
{END account_id_newgroup}
{BEGIN buyer_id_newgroup}
<tr>
<td class=header_2 colspan=6>
{$label proforma_invoices_report buyer_id}:&nbsp;
<font style="font-weight:900">{$buyer_id_grval}</font></td>
</tr>
{END buyer_id_newgroup}
{BEGIN consignee_id_newgroup}
<tr>
<td class=header_3 colspan=6>
{$label proforma_invoices_report consignee_id}:&nbsp;
<font style="font-weight:900">{$consignee_id_grval}</font></td>
</tr>
{END consignee_id_newgroup}
{BEGIN notify_id_newgroup}
<tr>
<td class=header_4 colspan=6>
{$label proforma_invoices_report notify_id}:&nbsp;
<font style="font-weight:900">{$notify_id_grval}</font></td>
</tr>
{END notify_id_newgroup}
{BEGIN proforma_invoice_no_newgroup}
<tr>
<td class=header_5 colspan=6>
{$label proforma_invoices_report proforma_invoice_no}:&nbsp;
<font style="font-weight:900">{$proforma_invoice_no_grval}</font></td>
</tr>
{END proforma_invoice_no_newgroup}
{BEGIN proforma_invoice_date_newgroup}
<tr>
<td class=header_6 colspan=6>
{$label proforma_invoices_report proforma_invoice_date}:&nbsp;
<font style="font-weight:900">{$proforma_invoice_date_grval}</font></td>
</tr>
{END proforma_invoice_date_newgroup}
{BEGIN id_newgroup}
<tr>
<td class=header_7 colspan=6>
{$label proforma_invoices_report id}:&nbsp;
<font style="font-weight:900">{$id_grval}</font></td>
</tr>
<tr>
<td class=blackshade>{$label proforma_invoices_report part_no}</td>
<td class=blackshade>{$label proforma_invoices_report uom_id}</td>
<td class=blackshade>{$label proforma_invoices_report quantity}</td>
<td class=blackshade>{$label proforma_invoices_report description}</td>
<td class=blackshade>{$label proforma_invoices_report unit_price}</td>
<td class=blackshade>{$label proforma_invoices_report total_price}</td>
</tr>
{END id_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
	<td class=data>{$part_no_value}</td>
	<td class=data>{$uom_id_value}</td>
	<td class=data>{$quantity_value}</td>
	<td class=data>{$description_value}</td>
	<td class=data>{$unit_price_value}</td>
	<td class=data>{$total_price_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{END grid_row}
</table>
</div>
{END grid_block}
{BEGIN pagination_block}
<div id="pagination_block{$id}">{$pagination}</div>
{END pagination_block}

</div>
</div>
{$footer}
{END body}
</body>
</html>